// MappingData.cpp: implementation of the CMappingData class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CMappingData.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMappingData::CMappingData()
{
	m_nMappingData[SLOT_NO] = 0;
	m_nWorkPos[SLOT_NO][WORK_POS] = 0;
	Datainit();
	m_nWaferSele = FALSE;
}
CMappingData::~CMappingData()
{

}
void CMappingData::SetMappingCount(int iCount)
{
	m_nMappingCount = iCount;
}

int CMappingData::GetMappingCount()
{
	return m_nMappingCount;
}

void CMappingData::SetMappingData(UINT Noslot,BOOL m_flgset)
{
	m_nMappingData[Noslot] = m_flgset;
}

BOOL CMappingData::GetMappingData(UINT Noslot)
{
	return m_nMappingData[Noslot];
}

void CMappingData::SetWorkPos(UINT Noslot,int WorkPos,int SetData)
{
	m_nWorkPos[Noslot][WorkPos] = SetData;
}
int CMappingData::GetWorkPos(UINT Noslot,int WorkPos)
{
	return m_nWorkPos[Noslot][WorkPos];
}
void CMappingData::Datainit()
{
	for(int i = 0; i < SLOT_NO ; i ++)
	{
		m_nMappingData[i]= 0;
		for(int j = 0; j < WORK_POS ; j ++)
		{
			m_nWorkPos[i][j]= 0;
		}
	}

}